import 'package:qr_code_app/generated/json/base/json_field.dart';
import 'package:qr_code_app/generated/json/user_entity.g.dart';
import 'dart:convert';
export 'package:qr_code_app/generated/json/user_entity.g.dart';

@JsonSerializable()
class UserEntity {
	String? username = '';
	String? email = '';
	String? avatar = '';
	String? nickname = '';

	UserEntity();

	factory UserEntity.fromJson(Map<String, dynamic> json) => $UserEntityFromJson(json);

	Map<String, dynamic> toJson() => $UserEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}